<?php
session_start();

$googleUserId = $_SESSION['googleIdentifier'];
$accion = $_GET["action"];

switch($accion){
	case "AddItinerary":
		echo "AddItinerary";
		
		$name = $_GET["name"];
		$description = $_GET["description"];
		$public = $_GET["public"];
		
		echo "<br/>".$name;
		echo "<br/>".$public;
		
		$wsdl = "http://api.quocity.com/QuocityPrivateService.svc?wsdl";
		
		$options = array( 
		                'soap_version'=>SOAP_1_1, 
		                'exceptions'=>true, 
		                'trace'=>1, 
		                'cache_wsdl'=>WSDL_CACHE_NONE 
		            ); 
		            
		$client = new SoapClient($wsdl, $options);

		$vem = $client->__call('AddItinerary',array(2,"PROBAPROBA","11111111111"));
		
		var_dump($vem);
		
		
		
	break;
	
		
}



?>

